]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/keyboard: Check for monkey-patched property before using it
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Feb 2020 15:03:54 +0000 (16:03 +0100)
committerverdre <jonas@dressler.it>
Thu, 20 Feb 2020 19:08:47 +0000 (19:08 +0000)
This avoid another "reference to undefined property" warning.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1035

js/ui/status/keyboard.js

index 2f0ab94f0592f147a8dac43cb6fc10e11d8604db..b2e16bc4851bf3ff8844bae62a2c0211c92983d2 100644 (file)
@@ -715,7 +715,8 @@ var InputSourceManager = class {
         if (!window)
             return;
 
-        if (window._inputSources != this._inputSources) {
+        if (!window._inputSources ||
+            window._inputSources !== this._inputSources) {
             window._inputSources = this._inputSources;
             window._currentSource = this._getNewInputSource(window._currentSource);
         }